<template>
	<view class="container">
	  <productConSwiper :imgUrls="sliderImage" :videoline="videoLink">
	  </productConSwiper>
	  
	  <easy-upload
	  	:dataList="dataList" 
	  	uploadUrl="http://localhost:3000/upload" 
	  	deleteUrl='http://localhost:3000/upload' 
	  	:types="types"
	  	@successImage="successImage" 
	  	@successVideo="successvideo"
	  />
	</view>
</template>

<script>
	import productConSwiper from '@/components/productConSwiper';
  export default {
	  components: {
	  	productConSwiper
	  },
      data() {
          return {
              sliderImage: [
				  'https://t12.baidu.com/it/u=1552311178,148132261&fm=30&app=106&f=JPEG?w=312&h=208&s=AC20E01094C1415316B3F6DD030000AD',
				  'https://t11.baidu.com/it/u=65698903,148222523&fm=30&app=106&f=JPEG?w=312&h=208&s=366ADA1447637F07305A9449030080FA'
			  ],
              videoLink: 'https://img.cdn.aliyun.dcloud.net.cn/guide/uniapp/%E7%AC%AC1%E8%AE%B2%EF%BC%88uni-app%E4%BA%A7%E5%93%81%E4%BB%8B%E7%BB%8D%EF%BC%89-%20DCloud%E5%AE%98%E6%96%B9%E8%A7%86%E9%A2%91%E6%95%99%E7%A8%8B@20200317.mp4',
              autoplay: true,
              interval: 3000,
              duration: 500,
              currents: "1",
              controls: true,
			  dataList: [],
			  types: 'video'
          }
      },
      methods: {
		 successImage(uploadFileRes){
			 console.log(uploadFileRes.data);
		 },
		 successvideo(uploadFileRes){
		 			 console.log(uploadFileRes.data);
		 }
      }
  }
</script>

<style lang="scss">
  
</style>
